import { get, post } from '@/utils/http'

// 用户相关接口
export const userApi = {
  login: data => post('/user/login', data),
  getUserInfo: () => get('/user/info'),
  getUid: () => get('/api/getuniqueid'),
}

// 聊天相关接口
export const chatApi = {
  sendMessage: (data,isStream) => post('/chat-messages', data,isStream)
}


// 其他接口可以按模块继续添加